﻿using System.Collections.Generic;
using System.Linq;
using Model.Entities;

namespace Model.Repositories
{
    public interface IRepository<T> where T : BaseEntity
    {
        T Get(int id);
        T Insert(T obj);
        T Update(T obj);
        void Delete(T obj);

        IList<T> GetAll();
    }
}
